package com.lei.mingyuemall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lei.common.utils.PageUtils;
import com.lei.mingyuemall.ware.entity.WareSkuEntity;
import com.lei.mingyuemall.ware.vo.SkuHasStockVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void addStock(@Param("skuId") Long skuId,@Param("wareId") Long wareId,@Param("skuNum") Integer skuNum);

    List<SkuHasStockVo> getSkusHasStock(List<Long> skuIds);

}
